package dapps.web.document;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.ActionSupport;

import dapps.entity.document.Category;
import dapps.service.document.CategoryManager;

@SuppressWarnings("serial")
public class LeftAction extends ActionSupport {
	@Autowired
	private CategoryManager categoryManager;
	private List<Category> categorylist;

	public String execute() throws Exception {
		setCategorylist(categoryManager.getAll());
		return SUCCESS;
	}

	public void setCategorylist(List<Category> categorylist) {
		this.categorylist = categorylist;
	}

	public List<Category> getCategorylist() {
		return categorylist;
	}

}
